<!DOCTYPE html PUBLIC 
	"-//W3C//DTD XHTML 1.1 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	
<%@taglib prefix="s" uri="/struts-tags" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>LSE Feeds</title>
	<s:head />
	<script type="text/javascript">
		$(document).ready(function() {
			
		} );
	</script>
</head>
<body>
	<h4 id="pageTitle">
		LSE Feeds
	</h4> 
	
	<div id="buttonBar">
		<input type="button" value="Add Feed" onclick="window.location.href='<s:url action="addsource" />';" />
	</div>
	
	<table id="sourcelist"  style='table-layout:fixed;' border="0" cellspacing="0" cellpadding="0" width="1024px">
	<thead>
		<tr>
			
			<th width="20" >
				ID
			</th>
			<th width="150">
				Name
			</th>
			<th width="60">
				Category
			</th>
			<th width="150">
				Description
			</th>
			<th width="350">
				Link
			</th>
			<th width="170">
				Geometry
			</th>
			<th width="50">
				Type
			</th>			
			<th width="100">
				Event SubCategory
			</th>				
			<th width="100">
				Action
			</th>

		</tr>
	</thead>
	<tbody>
		<s:iterator value="sourceList">
		<tr>
			<td width="20">
				<a href="javascript:window.location.href='<s:url action="editsource" />?selectedSource=${id}'">
			<s:property value="id" />
		</a>
			</td>
			<td>
				<div style="margin=0;padding:0;overflow:hidden;width=100%;height=100%;line-height:1.5em"> <s:property value="name" /><s:if test="cbcContent"><br/>(CBC)</s:if></div>
			
			</td>
			<td>
				<s:property value="category.name" />
			</td>
			<td>
				<s:property value="description" />
			</td>
			<td>
				<div style=";overflow:hidden;width=100%;height=100%;line-height:1.5em"> <s:property value="link" /></div>
			</td>
			<td>
				<div style="margin=0;padding:0;overflow:hidden;width=100%;height=100%;line-height:1.5em"> <s:property value="defaultGeom" /></div>
			</td>
			<td>
				<s:property value="sourceType" />
			</td>
			<td>
				<s:property value="eventSubcategory" />
			</td>
			<td>
				<s:url var="url" action="updatesource">
					<s:param name="selectedSource">
						<s:property value="id" />
					</s:param>
				</s:url>
				<s:a href="%{url}" cssClass="button" > 
					<s:if test="%{digestFlag}">
						Disable
					</s:if>
					<s:else>
						Enable
					</s:else>
				</s:a>
			</td>

		</tr>
	</s:iterator>
	</tbody>
	</table>
</body>
</html>
